package cn.wynu;

import cn.wynu.config.AppConfig;
import cn.wynu.service.StudentService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class StudentTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

        StudentService studentService = context.getBean(StudentService.class);

        studentService.addStudent("张三");
    }
}
